package com.duanzz.sqlSession;

import com.duanzz.pojo.Configuration;
import com.duanzz.pojo.MappedStatement;

import java.sql.Connection;
import java.util.List;

public interface Executor {

    <E> List<E> doQuery(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    int doUpdate(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    ThreadLocal<Connection> getThreadLocal();
}
